package basic.xiazheng.string;

/**
 * @创建人 MBY381
 * @创建时间 2022/4/10 18:16
 * @描述 暂无
 */
public class SBspace {
    public static void main(String[] args) {
        String string="\n\n";
        System.out.println(string.length());
        printSb();

    }


    public static void printSb() {
        StringBuilder sb1 = new StringBuilder("mby");
        StringBuilder sb2 = new StringBuilder("381");
        sb1.append('z');
        sb1.append("z");
        sb1.appendCodePoint(90);
        sb1.append("c").append('b').append(sb1.hashCode()); //链式添加
        System.out.println(sb1.hashCode());
        sb1.setCharAt(0, 'w');
        sb1.insert(5, 's');

        System.out.println(sb1.append(sb2));
        sb1.append(new StringBuffer("wdnmd").append("227"));
        System.out.println(sb1);
        String str = sb1.toString();//转换需toString
        System.out.println(str);


        zax();

    }

    public static void zax() {
        System.out.println("\n------------------------------------------------------------------------\n");
    }


}
